package com.tbit.uqbike.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;

/**
 * 流水类型
 *
 *
 * @author <a href="mailto:chen.chaoxiong@tbit.com.cn">ChenChaoXiong</a>
 * @since 2024/5/21
 */
public enum FlowType {

    /**
     * 收入
     */
    INCOME("income", 1, "收入"),

    /**
     * 支出
     */
    EXPENDITURE("expend", 2, "支出");



    private final String type;

    @EnumValue
    private final Integer code;

    private final String desc;

    FlowType(String type, Integer code, String desc) {
        this.type = type;
        this.code = code;
        this.desc = desc;
    }

    public String getType() {
        return type;
    }

    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    @Override
    public String toString() {
        return type;
    }
}
